Php Find Index In Array Javascript Push Object