Link fixes
Simplified table of contents JS