title: Javascript function called, but result not fully returned
body: <p>I am new to Meteor and Node.js, there for my problem might just be a banality for those more skilled.</p>
  
  <p>I am writing a script, that should return time in +30 minute in the future, in this format: <code>11.12.16 20:05</code> However, if I try to run my function, nothing seems to be happening and I get no errors in console or from server.</p>
  
  <p>This is my html:</p>
  
  <pre><code>&lt;body&gt;
  
      &lt;header&gt;DPPZ&lt;/header&gt;
  
      {{&gt; price24}}
      {{&gt; price32}}
  
      &lt;div id="newWindow" style="display: none;"&gt;
          &lt;p id="time"&gt;&lt;/p&gt;
      &lt;/div&gt;
  
  &lt;/body&gt;
  
  &lt;template name="price24"&gt;
      &lt;div class="container24"&gt;
          &lt;button id="container24" onclick="ticket24()"&gt;24Kč&lt;/button&gt;
          &lt;p&gt;(30 minut)&lt;/p&gt;
      &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;template name="price32"&gt;
      &lt;div class="container32"&gt;
          &lt;button id="container32" onclick="ticket32()"&gt;32Kč&lt;/button&gt;
          &lt;p&gt;(90 minut)&lt;/p&gt;
      &lt;/div&gt;
  &lt;/template&gt;
  </code></pre>
  
  <p>Here is my JS:</p>
  
  <pre><code>function ticket24(){
      document.getElementById("newWindow").style.display = "block";
  
      var d = new Date();
      var den = d.getDate();
      var mesic = d.getMonth();
      var rok = d.getFullYear();
      var hodina = d.getUTCHours();
      var minuta = d.getUTCMinutes();
  
      switch(mesic){
          case(0):
              mesic = 1;
          case(1):
              mesic = 2;
          case(2):
              mesic = 3;
          case(3):
              mesic = 4;
          case(4):
              mesic = 5;
          case(5):
              mesic = 6;
          case(6):
              mesic = 7;
          case(7):
              mesic = 8;
          case(8):
              mesic = 9;
          case(9):
              mesic = 10;
          case(10):
              mesic = 11;
          case(11):
              mesic = 12;
      }
  
      function novaMinuta(hodiny, minuty){
          switch(minuta){
            case(0):
                minuta = "00";
            case(1):
                minuta = "01";
            case(2):
                minuta = "02";
            case(3):
                minuta = "03";
            case(4):
                minuta = "04";
            case(5):
                minuta = "05";
            case(6):
                minuta = "06";
            case(7):
                minuta = "07";
            case(8):
                minuta = "08";
            case(9):
                minuta = "09";
            default: 
                minuta = minuta;
         }
  
          if (10 &lt;= Number(minuta) &gt;= 29){
              return Number(hodina + 1)+ ":" + Number(minuta) + 30;
          }
          else if (Number(minuta) == 30){
              return Number(hodina + 2) + ":" + "00";
          }
          else if (Number(minuta) &gt; 30){
              return Number(hodina + 2) + ":" + Number(minuta) - 30;
          }
      }
      rok = rok.toString().replace("20", "");
  
  
      document.getElementById("time").innerHTML = den + "." + mesic + "." + rok +
      " " + novaMinuta(hodina, minuta);
  
      document.getElementById("newWindow").style.display = "block";
  
  
  }
  </code></pre>
  
  <p>The <code>document.getElementById("newWindow").style.display = "block";</code> works, but the rest of the code 'prints' nothing.</p>