I made a Node.js package called oasys-converter which can be use to convert OASYS (an old text-adventure game system, which isn’t very capable but has the advantage you can more easily convert it to nearly anything) into JavaScript (the output is pure JavaScript and does not require Node.js or HTML or any other specific I/O model; you must provide that separately). You can try this with the “Escape From Planet Delta” game or with your own, and you can see how well it is working. A simple front-end is also included to show how you might use it.