Updated js to include heirarchical toc