revamped webview communications using runWebview.js