we introduce a generic C++ callback function to be called from Rust
note that this function is only used when the js return type is Promise<string>
we'll have to add similar functions to RustCallback for other return types
luckily we really only ever return strings from rust...