update js part