The former, the latter cannot be accessed by anyone but you.
Well, your code is barely holding together syntactically, let alone functionally. You already knew it had issues though, so let's move on.
The simplest and quickest thing I can see would be to replace the following configuration setting in your Story JavaScript:
config.history.controls = false;
With the following:
Config.history.maxStates = 1;
The former only hides the history controls—it's also SugarCube v1 code, the equivalent v2 API being Config.history.controls. The latter reduces the size of the history to a single state and hides the history controls, though it's the first bit that will help some here.
SEE: Config.history.maxStates
Anyway. Try that out and see what it does for you.