In this case it would actually be better to define this variable in the `var` block at the top of the function, since everything else is done there (and also `var` statements inside for loops are creepy).