minor bug fix in app.js and adding dependencies for package.json