fixed the routes to be correctly embedded in server.js