Replaced jQuery with AngularJS