title: Value returning null after assigning a value (kindof)?
body: <p>This is my code, with a few errors (i'll explain later)</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;&lt;title&gt;RandMath&lt;/title&gt;&lt;/head&gt;&lt;body&gt;
  &lt;p&gt;RandomMath&lt;/p&gt;
  &lt;p&gt;Click the button below to generate a random equation.&lt;/p&gt;
  
  &lt;button onclick="exampleSite();"&gt;Generate&lt;/button&gt;
  &lt;button id="isHard" onclick="harder();"&gt;Change Hardness&lt;/button&gt;
  &lt;button onclick="setTimeout(function() {window.location = 'http://xtremeplayzcode.github.io/randmath/source.js';}, 100);"&gt;See the code&lt;/button&gt;
  &lt;p id="generate"&gt;&lt;/p&gt;
  
  &lt;script&gt;
  function exampleSite() {
      change('generate', true);
  }
  var equations = [];
  var isHarder;
  function addEquation(equation) {
      this.fromArray = function(array) {
          equations.concat(equations, array);
      }
      equations.push(equation);
  }
  function getRandomizer(bottom, top) {
      return Math.floor(Math.random() * (1 + top - bottom)) + bottom;
  }
  function getRandomNumber(isHard) {
      var results = "";
      if (isHard === true) {
          for (var i = 0; i &lt; 1; i++) {
              results += getRandomizer(1, 9);
          }
      } else {
          for (var i_ = 0; i_ &lt; 2; i_++) {
              results += getRandomizer(1, 9)
          }
      }
      return results;
  }
  function useExampleEquations() {
      var num_7 = getRandomNumber(isHarder),
          num_6 = getRandomNumber(isHarder),
          num_5 = getRandomNumber(isHarder),
          num_4 = getRandomNumber(isHarder),
          num_3 = getRandomNumber(isHarder),
          num_2 = getRandomNumber(isHarder),
          num_1 = getRandomNumber(isHarder);
  
      var equation1 = num_1+" x "+num_2+" + {"+num_3+" x [("+num_4+" x "+num_5+") - "+num_6+"] + "+num_7+"} = x",
          equation2 = num_1+" x "+num_2+" = y",
          equation3 = num_1+"s x "+num_2+" = z, s = "+num_3,
          equation4 = num_1+" + {" +num_2+ " x [" +num_3+" + ("+num_4+" x "+num_5+") + "+num_6+"] + "+num_7+"} = x",
          equation5 = num_1+"e + "+num_2+"l x "+num_3+" + "+num_4+"a, e = "+num_5+", l = "+num_6+", a = "+ num_7,
          equation6 = "["+num_1+" x "+num_2+ "z] + {"+num_3+" - "+num_4+"} + ("+num_5+" + "+num_6+") = e, z = "+ num_7,
          equation7 = "p x "+num_1+" x "+num_2+" - "+num_3+" + "+num_4+" = e, p = "+num_5;
  
      var exampleEquations = [
          equation1,
          equation2,
          equation3,
          equation4,
          equation5,
          equation6,
          equation7
      ]
  
      addEquation.fromArray(exampleEquations);
   }
  function getRandomEquation() {
      var change = 0;
      change = getRandomizer(0, equations.length - 1);
      return equations[change];
  }
  function change(element, useExampleEquations_) {
      if (useExampleEquations_) {
          useExampleEquations();
          document.getElementById(element).innerHTML = getRandomEquation();
      } else {
           document.getElementById(element).innerHTML = getRandomEquation();
      }
  }
  function harder() {
      if (isHarder) {
              isHarder = false;
      } else if (!isHarder) {
              isHarder = true;
      } else {
          isHarder = true;
      }
   }
   &lt;/script&gt;
  
  
  
   &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>And when I click generate, it returns nothing. Any help?
  (P.S. a working demo is up here: <a href="http://xtremeplayzcode.github.io/randmath/" rel="nofollow">here</a> in case you want to see it before I ruined it or see how I want it to turn out :p)</p>