Fixing Nicks mistakes in app.js as usual