Update rating.js