added README.md and app.js changes to fix flash errors