Update to support onScriptMessage and provide a simple example