I didn't know that. I've made a similar thing for a client using Fengari, a port of Lua written in JavaScript. The project has gone stale in the past few years but is stable enough for a playground section. Thanks for letting me know about this.