update javaScript