Converted TOC to use cross-browser compatible textContent

TOC links showed up as 'undefined' on Firefox and other Gecko based browsers. Changed it to use the standards-compliant 'textContent' instead of 'innerText'