fixed rating.js