fix issue with drag and drop by moving application.js back to head