refactor position of js files and structure of application.js