reordered js in application.js