Shim document.head

Thanks to the following:
http://mathiasbynens.be/notes/document-head