Modification of app.js
added code to manage routing