update javascript open page new tab.