update app.js so view photos should now work