Update photo-viewer.js