Reorganized directories; Split application.js