change to AngularJS