Added JS for the popup