Should the variable "i" here be declared using var since we're in strict mode and we don't want it to get set on the global object?

Also, it looks like there's inconsistencies in the js coding conventions. In one example, variables in for loops are [initialized with var] (https://github.com/Wikia/guidelines/blob/master/JSCodingConventions.md#trycatch-blocks), and in another [they're initialized without](https://github.com/Wikia/guidelines/blob/master/JSCodingConventions.md#good-examples).