Fixed the ajax request for rating