Not sure what the class="row<%- index -%>" is for but you can use CSS3 selectors instead of a numbered class.