Changed app.js to use routes