How to write javascript to div that self executes
<p>My application is retrieving content from an XML file that has javascript in it. I am taking the javascript and placing it into my DOM, but the script is not executing.</p>

<p>How do I write javascript onto my page that will then execute?</p>

<p>My app goes something like this...</p>

<pre><code>var javaScriptFromFile = getJS();
myDiv.innerHTML = javaScriptFromFile;
//Next, how do I execute the javascript? 
//Can I make the javascript in the innerHTML self executing?
</code></pre>
