update to application.js