update js command code