modify routes/index.js, app.js and server.js to pass data