<% var left = '<%-' %>
<% var right = '%' %>
<% var right2 = '>' %>

<% for (let index in htmlWebpackPlugin.files.js) { %>
<% let jsFile = htmlWebpackPlugin.files.js[index] %>
<%= `${left} js('${jsFile}') ${right}${right2}` %>
<% } %>