Re-arrange application.js for production