get rating through ajax