application.js fixes