javascript array filter duplicates by property