update comment in JS