Array User Input In Javascript Indexof Method