changed the form to submit button and added some comments to application.js