update js popup