Refactor node app.js so routes are clearly ordered