fix ie6-8 document.head bug