improve compatibility for internet explorer browsers

For IE8 an 9