updated js so that user input field clears after each guess