title: javascript blank page showing up
body: <p>When I load this page on the internet, the screen appears blank and I've been having this problem with other java script pages I've written out, so Im wondering, is there a code I'm missing or something? </p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;script tpye=text/javascript&gt; 
        function Dateg (date1, date2) { 
          var a = 1000 * 60 * 60 * 24; 
          var difeq = date2.getTime() - date1.getTime(); 
          var dif = Math.round(difeq / a); 
          return days;
        } 
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;script type=text/javascript&gt;
        var day1 = new Date(2014, 10, 24);
        var day2 = new Date(2014, 10, 27);
        var dif = dateDif(day1, day2);
        alert("there are " + dif + " days between " + day1.toDateString() =+ " and " + day2.toDateString()); 
      &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>