IE8 compatibility with AngularJS 1.2.6