application.js: fixes