The gist is that you create a webview layer with a URL of 'about:blank', then use the JS Extension to contain the 'widget'. There's some examples in the link above for Twitter feeds.
There's more information on the webview and the JS API in these pages: