Php Find Object In Array Javascript