Extend webview type choice to JS