fixed some jshint errors (missing trailing semicolons, parseint radix), changed selector type, removed bootstrap icon minus, proper inclusion of jQuery to avoid conflicts, read id from headings to use as stub directly, avoid selecting list elements by stub, don't create orphaned toc lists at maximum depth