Refactors routes out of app.js