title: Javascript not loading in browser
body: <p>Im a beginner programmer and im experiencing some issues loading javascript code on my browser. Are there any errors in my code? or could it be an issue with my computer. If it helps: im using OS Sierra, Google Chrome, Atom editor. </p>
  
  <p>Thanks!!</p>
  
  <p>HTML code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
      &lt;head&gt;
  
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;title&gt;A* Algorithm&lt;/title&gt;
  
              &lt;h1&gt;This is the A* pathfinding algorithm&lt;/h1&gt;
              &lt;script src ="astar.js"&gt; &lt;/script&gt;
  
      &lt;/body&gt;
  
  
  &lt;/html&gt;
  </code></pre>
  
  <p>Javascript code:</p>
  
  <pre><code>var cols = 5;
  var rows = 5;
  var grid = new Array(cols);
  
  function setup() {
      createCanvas(400, 400);
      console.log("A*");
  
      for (var i = 0; i &lt; cols; i++) {
          grid[i] = new Array(rows);
      }
  
      for (var i = 0; i &lt; cols; i++) {
          for (var j = 0; i &lt; row; j++) {
              grid[i][j] = new Spot();
          }
      }
  
      console.log(grid);
  }
  
  function draw () {
      background(0);
  }
  </code></pre>