remove duplicate from an array in javascript