Reorganized app folder and application.js