made code imperative to make this work in IE8 w/out shimming