IE sort of fix, where document.head does not exist