javascript  updation