current.putTab(tab, current.getNewTabPaths().get(tab), webView);
WebEngine webEngine = webView.getEngine();
Worker.State state = webEngine.getLoadWorker().getState();
if (state == Worker.State.SUCCEEDED)
webEngine.executeScript("waitForGetValue()");
}
});
((Label) tab.getGraphic()).setText("new *");
current.putTab(tab, null, webView);
tabPane.getTabs().add(tab);