adds ratings ajax, now working, just need to refactor