Javascript change string to type function?
<p>I have a list of functions stored as strings such as this one:</p>

<pre><code>var act= "function () { alert() }";
</code></pre>

<p>I need to change the type of act from 'string' to 'function' so I can .call() it. I should end up with this:</p>

<pre><code>act = function () { alert() };
</code></pre>

<p>How can this be done?</p>
