Maybe I try your script in wrong way? I typed
in the left-hande side terminal of Web IDE.
I also put it in the right-hand side editor and click "Send to Espruino".
Both return following error messge
Uncaught ReferenceError: "TelnetServer" is not defined
at line 1 col 13
Is any other way to test it in web IDE or other tools?