Change to work with AngularJS 1.2 RC3