modified the app.js and added few supporting files