Based on Text Elite sources by Elite's co-creator, Ian Bell. JavaScript conversion by Joshua Bell (no relation).
The script be downloaded and run from the command line using Windows Cscript or Mozilla Rhino. When run on the command line and using the Sinclair command file, the output is identical to the TXTELITE version - typos, weird formatting and everything.