work with rating ajax