title: javascript "static imports"
body: <p>Is there anything in javascript that is the equivalent of java static imports? For example, if I have a <code>Math</code> class that looks like</p>
  
  <pre><code>com.example.Math = function() {
  
     function1(...) {}
     function2(...) {}
  
  }
  </code></pre>
  
  <p>Now some of these functions are naturally chained together such that the output to one is the input to another. I can do something like</p>
  
  <pre><code>com.example.Math.function2(com.example.Math.function1());
  </code></pre>
  
  <p>This is a little ugly looking, and I would really like to do something like:</p>
  
  <pre><code>function2(function1())
  </code></pre>
  
  <p>But I don't want to put function1 and function2 in the global namespace. Is this possible?</p>