How to a call c++ method from javascript running in WebBrowser widget?

I received a tip to use blueprint “execute javascript” node. That seems promising, but does not allow a return value. With return value I might be able to replace the need for callback. Being a newbie with UE and blueprints in special, is there some way to get a return value?