Move user input into it's own js file