title: How to dynamically send a new number to the client from an express server
body: <p>In the express server I have this.</p>
  
  <pre><code>app.dynamicHelpers({
      dynamicValue: function(req, res) {
          console.log("returning a new value");
          return parseInt(Math.random() * 100);
  
      }
  
  });
  </code></pre>
  
  <p>In the client I have this.</p>
  
  <pre><code>setInterval(function() {
          alert(&lt;%= dynamicValue %&gt;);
          }
          ,1000);
  </code></pre>
  
  <p>So every second, a new number should be shown.</p>
  
  <p>But that's not what happens. When the page loads a new number is generated, but the number that the client sees is always the same unless the page is reloaded.</p>
  
  <p>How can this be changed to do what it's supposed to?</p>