UPDATED refactored the app.js and updated readme.