updating application.js file