Splitting app into different routes and pulling methods out of app.js