Update java script