Update application.js

Updated formatting and fixed error on my last commit which added enter key functionality for submitting guesses.