i=0; i<toc.length; i++ ) {
    if (toc[i].id.substr(0,6)=='no-toc') continue;
    if (!toc[i].id) toc[i].id = "toc-item-" + i;
    html += '<li class="' + toc[i].nodeName + '" title="#' + toc[i].id + '" onclick="location=this.title">' 
    html += toc[i].textContent + '</a></li>';
  }
  
  document.getElementById(tocDiv).innerHTML = html + "</ul>";

  //===== scrollspy support (ps: add to document.body if element(scrollspy) not found)
  if ( options && options.scrollspy ) {
    
    (document.getElementById