javascript check for duplicates in array