Updating js, displaying Toc in ul