java script update