Variables are hoisted in JavaScript, so since `i` and `j` are used multiple times here, I figured this makes that clearer.