switched from jQuery to AngularJS