Bugfix for IE7+8

.textContent does not work in IE < 9. So used nodeValue instead.