title: Handlebars is not defined
body: <p>I am new at JS and never tried Handlebars before.  I'm trying a very bare-bones example from a tutorial.  I have downloaded <code>handlebars-v4.0.5.js</code> from the Handlebars website and included it in my page, as follows, along with a template I precompiled, <code>name-table.js</code>.  I'm trying my god damned hardest to complete <a href="http://code.tutsplus.com/tutorials/an-introduction-to-handlebars--net-27761" rel="noreferrer">this tutorial</a> but I can't, because when I run the following code, I get <code>ReferenceError: Handlebars is not defined</code> which I can't for the life of me understand, if the file I downloaded from Handebars' own site is in any way valid.</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;meta charset='UTF-8'&gt;
          &lt;title&gt;Test Page!&lt;/title&gt;
          &lt;script type='text/javascript'&gt;
              function init() {
                  document.getElementById('button').addEventListener('click', buttonClick, false);
              }
              function buttonClick() {
                  var injection = Handlebars.templates['name-table'];
                  document.getElementById('button').innerHTML = injection;
                  console.log('hello, world.');
              }
  
              window.addEventListener('load', init, false);
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;button id='button'&gt;Button&lt;/button&gt;
          &lt;div id='content'&gt;&lt;/div&gt;
  
          &lt;script type='text/javascript' rel='js/handlebars-v4.0.5.js'&gt;&lt;/script&gt;
          &lt;script type='text/javascript' rel='js/name-table.js'&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Edit:</strong>
  The answer I marked solved the problem.  <strong>Another error</strong> appears in this code, and I want to let anyone reading this know that <code>var injection</code> as defined in this code is a function, not a string as I had thought.  This code will work if <code>rel</code> is changed to <code>src</code> as in the answer given, and if we use <code>document.getElementById('button').innerHTML = injection();</code> (note the parens).</p>