update vanilla js