adding Jake's changes to app.js