title: Paper.js uncaught syntax error
body: <p>Getting lots of issues with Paper.js. Doing Colt Steele's Web Developer Bootcamp on Udemy. I'm on Section 19. Currently trying to make a Patatap clone. Here's when I'm stuck:</p>
  
  <p><a href="http://codepen.io/SlouchingToast/pen/LWLXYZ" rel="nofollow noreferrer">http://codepen.io/SlouchingToast/pen/LWLXYZ</a></p>
  
  <p>HTML</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Circles&lt;/title&gt;
      &lt;link rel="stylesheet" type="text/css" href="circles.css"&gt;
      &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/paper.js/0.10.3/paper-full.min.js"&gt;&lt;/script&gt;
  
      &lt;script type="text/paperscript" canvas="myCanvas"&gt;
  
      function onKeyDown(event) {
          var maxPoint = new Point(view.size.width, view.size.height);
          var randomPoint = Point.random();
          var point = maxPoint * randomPoint;
          new Path.Circle(point, 10).fillColor = "olive";
      }
  
      var animatedCircle = new Path.Circle(new Point(300,300), 100);
      animatedCircle.fillColor = "red";
  
      }
  
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;canvas id="myCanvas" resize&gt;&lt;/canvas&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;    
  </code></pre>
  
  <p>CSS</p>
  
  <pre><code>canvas {
      width: 100%;
      height: 100%;
      background: black;
  }
  
  body, html {
   height: 100%;
   margin: 0;
  }
  </code></pre>
  
  <p>Chrome Console Error</p>
  
  <pre><code>Uncaught ReferenceError: animatedCircle is not defined
      at at.paper._execute (&lt;anonymous&gt;:11:2)
      at u (paper-full.min.js:38)
      at HTMLCollection.l (paper-full.min.js:38)
      at HTMLCollection.l (paper-full.min.js:32)
      at Function.f [as each] (paper-full.min.js:32)
      at f (paper-full.min.js:38)
  paper._execute @ VM519:11
  u @ paper-full.min.js:38
  l @ paper-full.min.js:38
  l @ paper-full.min.js:32
  f @ paper-full.min.js:32
  f @ paper-full.min.js:38
  </code></pre>
  
  <p>What's supposed to happen, is just displaying a circle. That's it.</p>