replace jquery's run only after DOM is loaded functionality
<p>I am trying to remove dependence on jQuery. I have stolen a couple of functions I needed from underscore.js, but still need my code to run after the DOM is loaded in the same way as jQuery</p>

<h3>Original</h3>

<pre><code>$(function(){
  // all my code
})
</code></pre>

<h3>Desired</h3>

<pre><code>var afterload = function(content){
    // what goes here..?
}

afterload(function(){
    // my code that should run after the DOM is loaded
})
</code></pre>
