Replace textContent references and <span class='foo'> to make pivot table work in IE8