title: Update global variables on website after post
body: <p>In index.js I am rendering page with global variables.</p>
  
  <pre><code>router.get('/index', function(req, res, next) {
  
    res.render('index', { title: 'RLH',
    countNumber: countNumber, 
    countReleased: countReleased, 
    countOpen: countOpen
  });
  </code></pre>
  
  <p>in the same index.js I also have:</p>
  
  <pre><code>router.post('/index', function(req, res, next) {
    datatamper = req.body;
    countSev();
    countTickets();
    countTime();
  
  });
  </code></pre>
  
  <p>On port 3000 I am listening for data, once I get it I am making some calculation and then the page is ready to be opened with global variables.</p>
  
  <p>Clearly this is working just fine to open the page and all data will be here</p>
  
  <p>On the page I am presenting data like that:</p>
  
  <pre><code>&lt;p&gt; &lt;b&gt; Tickets&lt;/b&gt;: &lt;span&gt;{{countNumber}}&lt;/span&gt;&lt;/p&gt;
  </code></pre>
  
  <p>Yet I would like to update just the data on the website by itself after every post(not refreshing the whole page).</p>
  
  <p>Data by post is coming every minute, yet that might change.</p>