Updated application.js file