How does the load() function allow the user to provide a callback?
<p>In javascript it's very popular for libraries/frameworks to let us define a callback function for post-processing of data.</p>

<p>eg.</p>

<pre><code>load("5", function(element) {
    alert(element.name);
});
</code></pre>

<p>I wonder how the load() function looks like to be able to let the user provide a callback?</p>

<p>Are there good tutorials for this?</p>
