refactors app.js, adds routes folder