Changed to childNodes and textContent for I.E and Safari