Update photoRating.js