add small javascript utilities to show the TOC on the sidebar

Still needs to check TOC availability
make sure to remove export settings