added code to app.js, dependencies.