Fixes.

 * Remove ng-class escaping from template.
 * Use function to test star's state.