update js basic