title: Javascript function call from Jade template is not Working
body: <p>I want to call javascript function from my JADE template. I tried solutions posted in forum. but still it gives me error like "undefined is not a function"</p>
  
  <p>My Javascript function is </p>
  
  <pre><code> script.
     function addCommas(nStr) {
                 return nStr;
         }
  </code></pre>
  
  <p>And i am calling this function from JADE template like -</p>
  
  <pre><code> td(style='width: 10%;') #{addCommas("12345")}
  </code></pre>
  
  <p>But i throws error as below -</p>
  
  <pre><code>undefined is not a function
  </code></pre>
  
  <p>Can anyone help me on this?</p>
  
  <p>Thanks.</p>