javaScript Update