How To Input The User Input In Javascript Array