updates javascript