js refactor to have Webview 'class' that takes an id, this fixes #1