editing JS popup