Javascript Create New Array Object Indexof