`document.head` is undefined in IE8