Javascript Array Indexof Object