removed application.js and merged code into routes.js