removing the last of AngularJS