rearranged application.js