It looks like index is equal to the index of this item in `currentCriteria`. Handlebars gives you `@index`, which is available within an `each` block, which you can use instead.