generate sidebar toc list index with js