<script type=“text/javascript”>

$(function() {
  //Calls the tocify method on your HTML div.
  $("#toc").tocify({context: '#doc', scrollTo: '60', selectors: "h2,h3,h4"});
});

</script>