Minor fixes to application.js