Simplifications for IE8 compatability code