inputted a prompt in javaScript