Refactored app.js
Updated dependencies