title: Titanium is not defined when attempting Titanium.UI.currentWindow using titanium appcelerator
body: <p>When I run the app on the device I get no error (well nothing occurs at all) as there is no debug console but when I run the app in the browser I get "Titanium is not defined" </p>
  
  <p>Is there a js file I need to include? </p>
  
  <p>I got the camera code from here:
  <a href="http://www.mindfiresolutions.com/Capture-Image-with-device-camera-in-IPhoneAndroid-application-using-Titanium-1912.php" rel="nofollow">http://www.mindfiresolutions.com/Capture-Image-with-device-camera-in-IPhoneAndroid-application-using-Titanium-1912.php</a></p>
  
  <p>I call it from an html file from webview.</p>
  
  <p>I created a new project from scratch and I get he same error. This is so frustrating:</p>
  
  <p>in html:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang="en"&gt;
      &lt;head&gt;
  
          &lt;meta name="viewport" content="width=device-width;initial-scale=1.0 maximum-scale=1.0; user scalable=0;"&gt;
  
          &lt;title&gt;Notes&lt;/title&gt;
  
          &lt;script language="JavaScript" type="text/javascript"&gt;
              function play(locid) {
                  Ti.App.fireEvent('play', {
                      locid : locid
                  });
              }
          &lt;/script&gt;
  
      &lt;/head&gt;
      &lt;body&gt;
  
          &lt;a id="Home" onclick ="play(125)" title = "" &gt; hello &lt;/a&gt;
  
      &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>in app.js:</p>
  
  <pre><code>Ti.App.addEventListener('play', function(e) 
  { 
      alert(e.locid);
  
  });
  </code></pre>
  
  <p>Uncaught ReferenceError: Ti is not defined in the HTML file!!!</p>