update java script