Try reordering application.js