AngularJS upgrade to 1.2