Dynamically loading and deleting JS code from DOM and memory
<p>Basically i want to load JS file like this into the page dynamically</p>

<pre><code>globalVar = "some variable";
alert(globalVar);
</code></pre>

<p>And then i want to remove it, i can easily delete script from DOM, but i will have <code>globalVar</code> remain in the memory...</p>

<p><strong>Is there a JS libraries that will help me to load script and then unload it and unload all variables, classes, functions that were declared by that script? Or is there some tricks to do that?</strong></p>
