cleaned up application.js file