Extract the JavaScript code at the bottom of application.js into a new file