title: Why is browser returning error "TypeError: this._input is null" in Firefox (and similar in Chrome) when using handlebars.js?
body: <p>This is the code I am trying out: <a href="http://jsfiddle.net/sbrsK/10/" rel="nofollow noreferrer">http://jsfiddle.net/sbrsK/10/</a>
  <br>It runs correctly without any error in jsfiddle</p>
  
  <p>Trying to run the same via a web-server locally on my computer does not work.
  The following files are being loaded: </p>
  
  <ul>
  <li>index.html</li>
  <li>app.js</li>
  </ul>
  
  <p><strong>In Firefox</strong> I get this error:</p>
  
  <pre><code>TypeError: this._input is null @ http://cloud.github.com/downloads/wycats/handlebars.js/handlebars-1.0.0.beta.6.js:364
  </code></pre>
  
  <p><strong>In chrome</strong> I get this error:</p>
  
  <pre><code>Uncaught TypeError:Cannot call method 'match' of null
  under match = this._input.match(this.rules[rules[i]]); in handlebars-1.0.0.beta.6.js
  </code></pre>
  
  <p>There is a very similar problem raised earlier in this <a href="https://stackoverflow.com/questions/12268088/working-with-handlebar-js">link</a>, but seems that it is still open.</p>
  
  <p>So the question is why is this error happening when it works correctly in jsfiddle?
  What is the correct way to run this locally?</p>