title: Ti.App.fireEvent - Reference error Ti is not defined
body: <p>I have this simple Titanium js script.</p>
  
  <p>app.js</p>
  
  <pre><code>var win = Ti.UI.createWindow();
      var webview = Ti.UI.createWebView({
          url: 'logging.html'
      });
      webview.addEventListener('help',function(){
          alert('help');
      });
      win.add(webview);
      win.open();
  </code></pre>
  
  <p>logging.html</p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          &lt;a onclick="Ti.App.fireEvent('help')"&gt;Help&lt;/a&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>when I click on the Help link, the console gives me <code>Reference Error: Ti is not defined</code>.</p>
  
  <p>I also tried changing Ti with Titanium, but same error.</p>
  
  <p>------------- EDIT ----------</p>
  
  <p>this error comes only with web browser. iOS works perfectly. but </p>
  
  <h2>when titanium studio compiles the project for web mobile, I can see titanium.js and TI/* folder, so I guess it can't load Ti object. can anyone explain me why?</h2>