update js syntax