title: p5.js createCanvas not defined error. Uncaught ReferenceError
body: <p><em>Problem:</em></p>
  
  <p>I am trying to use <a href="https://github.com/lmccart/p5.js/wiki/p5.js-overview" rel="noreferrer">p5.js</a> in my simple app, and including it thus:</p>
  
  <pre><code>&lt;script src="static/js/p5.js"&gt; &lt;/script&gt;
  </code></pre>
  
  <p><em>What I've tried:</em></p>
  
  <p>If I put a debugger and look in the console, I do get the functions for <code>p5Color</code> (for ex) and others. And the script gets loaded on to the page fine. Except <code>createCanvas</code> doesn't auto-complete and when used in the page, throws above error.</p>
  
  <p><em>Why? How can I work around this?</em></p>