Update photos.js