Array Indexof Method In Javascript