AngularJS Directive for rating inputs