slight refactoring

application.js