Work towards IE8 compatability