I realize that you would still have some coupling ...
# javascript
k
I realize that you would still have some coupling there, because you have to add things like button clicks and if statements and such, but perhaps you could archive that with a very thin layer that could be standardized so that more languages can make use of the same kind of layer