title: Script fails to execute following prompt
body: <p>I'm trying to execute a jQuery script but I'm encountering problems when certain segments are added to the script. For example, the script below works:</p>
  
  <pre><code>var cNum = 16;
  
  var clickButton = function(opt){
  
      cNum = prompt('Select a number from 1 to 128');
      makeGrid(cNum);
  
  };
  </code></pre>
  
  <p>... and calls a prompt as it's supposed to. However, adding a function for makeGrid results in the script not being executed at all:</p>
  
  <p>var cNum = 16;</p>
  
  <pre><code>var clickButton = function(opt){
  
      cNum = prompt('Select a number from 1 to 128');
      makeGrid(cNum);
  
  };
  
  var makeGrid = function(opt){
      if (opt &gt;= 1 &amp;&amp; &lt;= 128) {
          alert("Inconsequential text");
      } 
      else { 
          alert("Inconsequential text");
      }
  };
  </code></pre>
  
  <p>The alerts above are just an example of how the script fails to execute.</p>