title: Execute initially and via function call
body: <p>What is the best way wrap some code so I can call it with <code>foo();</code> and have it execute when the javascript is loaded ?</p>
  
  <p>I want to have foo executed whenever the javascript is loaded and have the ability to call foo  with foo();</p>