use localStorage instead of cookies for show/hide of TOC
Merge pull request #1330 from szabgab/szabgab/cookie-to-localstorage

 use localStorage instead of cookies for show/hide of TOC