javascript find all duplicates in array