Popup JS issues fixed.