Javascript Find Index Of Item In Array In Php Associative Array