title: JScript runtime error: 'System' is undefined"
body: <p>I have JScript method that is :</p>
  
  <pre><code>function init() {
       var userid = System.Environment.getEnvironmentVariable("USERNAME");
       setUserName(userid);
      }
  </code></pre>
  
  <p>When I debug it , at first line of the init function, I'll get "javascript Microsoft JScript runtime error: 'System' is undefined".</p>
  
  <p>I'd be thankful if some one let me know how can I solve it.</p>