CoffeeScript loops take an optional second argument for the index. You can remove `cIndex` altogether, and replace this line with `for mc, i in matchingCriteria`.