Update js popup