update js ui