Fix up some IE8 compatibility