See #34 for more details. Essentially `runCode()` was copied and pasted over to workflow.js from script.js, but a call to `changeMode()` was not adjusted and was out of scope.