AngularJS upgrade