Switched to AngularJS from jquery