add dependencies
refactor app.js and write README