Fix for JS error in ratings.js (bug 889319)