I love absolutely everything about this except the language choice.
Lua is a semantically cleaner alternative but it has relatively less mindshare and hence less third-party support.
That's not even remotely true. JS is only a common denominator for running code in a browser, but the lowest common denominator is still C/C++ and Java, even with native applications vs. Electron.