update photosjs