Example for passing along data from the native environment to webview via javascript events. Implemented for statusbar changes.