title: JavaScript object has no method exception
body: <p>I have the following object defined with an included method:</p>
  
  <pre><code>function MaxHullSpeedCalculator(lwl) {
      this.lwl = lwl;
  }
  
  MaxHullSpeedCalculator.prototype.calculate = function() {
      var mhs = 1.34 * Math.sqrt(this.lwl);
      return mhs.toFixed(2);
  };
  </code></pre>
  
  <p>However, when I try to make a call to calculate:</p>
  
  <pre><code> var mhsc = new MaxHullSpeedCalculator(Ti.App.lwlBox.value);
   mhsText.setText('Hull speed: ' + mhsc.calculate()); //throws error
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Exception occurred at outputWindow.js:51: Uncaught TypeError: Object #&lt;MaxHullSpeedCalculator&gt; has no method 'calculate'
  </code></pre>
  
  <p>Does anyone know what am I doing wrong?</p>