get ratings using ajax call