title: How to reference functions with document ready?
body: <p>I have some functions in a JQuery document ready method that I would like to reference from other external files, but I keep getting a function undefined. How can I make those global?</p>
  
  <p>ex.</p>
  
  <pre><code>external file 1
  
      $(function ()
      {
           function DoSomething()
           {    
              Do something
           }    
      });
  
  
  external file 2
  
      $(function ()
      {
  
          Call DoSomething()
      )};
  </code></pre>