title: javascript: explain how to use certain class as static
body: <p>I have scrip with this structure:</p>
  
  <pre><code>define('game-logic/clib',[], function () {
  
  var audio = null;
  
  return {
  
     //Some functions....
  
    localOrDef: function(name, def) 
    {
         /....
    },
  
  }
  
  });
  </code></pre>
  
  <p>And I have no idea, how this 'define' stuff on top works, I want to understand it, as I want to rewrite this script in such a way, so that I could call my functions like Clib.localOrDef(name,def), by including it with other scripts simply using: </p>
  
  <pre><code> "script type="text/javascript" src="js/clib.js"&gt;&lt;/script&gt;"
  </code></pre>
  
  <p>This 'define('game-logic/clib',[], function ()' - how to replace it with the call to the static class?</p>