title: TypeScript - Module is undefined at runtime
body: <p>I dont understand what i'm doing wrong. I've create a TypeScript project in VS2012, and created a file named "Vector.ts", in a sub-directory named "Physics":</p>
  
  <pre><code>// Module
  module Physics {
  
      // Class
      export class Vector {
          constructor(public x: number) { }
      }
  
  }
  </code></pre>
  
  <p>Also, I have the following app.ts file:</p>
  
  <pre><code>/// &lt;reference path="Physics/Vector.ts" /&gt;
  
  window.onload = () =&gt; {
      var vector = new Physics.Vector(6);
  };
  </code></pre>
  
  <p>The project is successfully compiled, but when i launch it, i get the following exception:</p>
  
  <blockquote>
    <p>0x800a1391 - JavaScript runtime error: 'Physics' is undefined</p>
  </blockquote>
  
  <p>I don't understand what am i doing wrong...</p>
  
  <p>Thanks.</p>