Tweaked regenerator hackery to work in CodeCombat chaos environment with the web worker.