title: functions not working in ejs template
body: <p>I'm doing a tutorial on youtube and I've gotten to a point where I need to loop through an array.  But when I try to run the function in an ejs template it doesn't work.  Anyone know what's causing this.</p>
  
  <p>This is the function</p>
  
  <pre><code>&lt;h1&gt;&lt;%= title %&gt;&lt;/h1&gt;
  &lt;%= users.foreach(function(){ %&gt;
  &lt;li&gt;&lt;%= user.first_name %&gt;&lt;/li&gt;
  &lt;% }); %&gt;
  </code></pre>
  
  <p>This is the array in my javascript file that I'm trying to loop through.</p>
  
  <pre><code>  var users = [
  {
    id: 1,
    first_name: 'John',
    last_name: 'Doe',
    email:  'johndoe@gmail.com',
  },
  {
    id: 1,
    first_name: 'Bob',
    last_name: 'Smith',
    email:  'bobsmith@gmail.com',
  },
  {
    id: 1,
    first_name: 'Jill',
    last_name: 'Jackson',
    email:  'jjackson@gmail.com',
  },
  </code></pre>
  
  <p>];</p>