Fix AngularJs compatibility with IE8