Php Find Element In Array Javascript Duplicates On Iphone