Create photoRating.js