fix: showTOC() takes a long time on large HTML document
fix: showTOC() takes a long time on large HTML document

- fix #924

vivliostyle/vivliostyle.js,vivliostyle/vivliostyle.js,vivliostyle/vivliostyle.js,vivliostyle/vivliostyle.js