Two fixes:
hid the appropriate elements using CSS instead of JS and
fixed the bug that broke the TOC on Firefox
Used an ID instead of the block class.