Fixed application.js bug