move the 'var startingState' declaration to the top of the file
jschannel.js has to be available in this directory to allow the JSinput -- 3 file solution work
removed a debugging 'alert()'