Array User Input In Javascript Indexof Function In Array