updates app.js to correspond with the changes