What does this javascript code do? How can I modify to make it a standalone script in the header?
<p>Look at the source of <a href="http://people.iola.dk/olau/flot/examples/realtime.html" rel="nofollow">http://people.iola.dk/olau/flot/examples/realtime.html</a></p>

<p>The function that draws the graph is for some reason IN the HTML instead of the header. It also has some mad weird <code>$(function() {});</code> enclosing syntax - no idea what that is. </p>

<p>How can I move all of that working code to the header as a self-contained function to draw the graph?</p>
