<ul><%= users.forEach(function(user){ %>
<li><%= user.name %></li>
<%= }); %>
</ul>
Using the above, the %= appears to be actually attempting to set a whole value instead of run a function. Using instead:
<ul><% users.forEach(function(user){ %>
<li><%= user.name %></li>
<% }); %>
</ul>
appears to have resolved the issue.