update js to load popup content last