updated demo options
wrote javascript for toc