Finalized Pop-up Javascript