I'm making a client side page builder which can let user load the script into the DOM and remove it back.
The problem is - although user remove the script element from the DOM, the variables are still available inside the DOM.
When user re-add the script again, it causes this error.
"Identifier '*' has already been declared"
How to clear old variables and avoid this error?