sample to pass code from webview to JavaScript app and back down