Updated index.js to display photo list on load