How to call Javascript from an HTML5 build

We have a UE4 scene where we need to send a command to the Google Speech API (it has to be Google because that’s the only one that does arabic). So we need to be able to send a Javascript command from Unreal in an HTML5 build. it looks like UE4.11 supports Javascript commands, but not in HTML5 builds.

Is there a workaround to calling Javascript in HTML5?

Here is the only related question I could find, but I’m too new to know if this is the correct route to dig into:

you can “inline” javascript code inside of C++

https://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html

look under the “Call JavaScript functions from C/C++:” section

Thanks! We will give that a shot.