update for AngularJS 1.3