Indexof Array Javascript Object Properties