refactor(rating): compatibility with AngularJS 1.2