Finished application.js file