Universal-transpiler can already translate a small subset of Lua to JavaScript. See here, for example.