Code styling - removed warning about redef of 'i'
[Refactoring] last part of jshint style fixes

Good job! JSHint hasn't found any problems
with your code.