update javascript