Fixed bugs when running in IE and Firefox.

Firefox: replaced additional 'innerText'.
IE: replace '.children' with another get method.