use ng-class to replace jQuery addClass/removeClass.