update java template for webview