Ratings AJAX fix by @Dr2005alex