There are currently no way to call Lua from JS. Don’t know if there is a way to write a native extension for this, you would have to explore the emscripten documentation.
I recently used html5.run
to poll for a variable on the JS side, if the var was set then I just called another JS function to return some new data. Same procedure as @Mathias_Westerdahl mentioned above, works really good.