Some of the fixes required for IE 8 to work with angular.