Moving the creation of the photos collection to the app.js file