amended application.js