History 2

Made several code changes to app.js