document.children is undefined in internet explorer