Update table of contents JS