Fix animations with AngularJS 1.3.0-beta.5