Passing functions in parameter, to be run on load
<p>This is the global function that runs on load:</p>

<pre><code>$.fn.loadfns = function(specificfns) {
    $('#wrapper').hide();
    $('#load').fadeIn(400);
    $(window).load( function() {
        $('#load').fadeOut(400, function() {
            $('#wrapper').fadeIn(600, function() {
                specificfns;
            })
        })
    });
};
</code></pre>

<p>Problem is, some pages require additional functions to be run after load (like inserting events into glDatePicker), so I'm trying to pass them as parameters for loadfns, like</p>

<pre><code>$.fn.loadfns("alert('I won't be run');");
</code></pre>

<p>But nothing happens, it's not executed. If I do</p>

<pre><code>... rest of function ...
$('#wrapper').fadeIn(600, function() {
    alert(specificfns);
})
</code></pre>

<p>It alerts "alert('I won't be run');" (without brackets) which should work as a function.</p>
