Added popup javascript