Get all unique values in a JavaScript array (remove duplicates)