For example you have an html file with:
<script>
function onRemotePlayerWasted () {
/* ... */
}
</script>
And you inject the following JavaScript to call the function.
addEventHandler("onClientPlayerWasted", root,
function ()
executeBrowserJavascript(browser, [[onRemotePlayerWasted();]])
end)