This launches a new instance of a command of your choosing for every new connection. That does not really seem like casting to me more like a remote shell, but it is adorable in some ways.
Not a good idea from a security standpoint though...
Just a heads up, xtermjs has now updated to version 4[1]. You might want to consider for an upgrade.