(function(){ "use strict"; function main() { $("#toc").toc({ showSpeed: 0, headers: 'h2' }); } $(document).ready(main); })();