Add the textContent method to IE8 (if it is not defined); copied from http://eligrey.com/blog/post/textcontent-in-ie8