updated application.js file