update app.js to glue together jquery callbacks to update page view