This may be due to some kind of race condition, like the elements don't exist yet?
This is probably the culprit, in init.js:
init.js
// create sidebar and attach to menu open $('.ui.sidebar').sidebar('attach events', '.toc.item')