good point. I agree. declare var i  multiple times in the same function scope, while not resulting error, is not ideal. I usually just use a different variable name instead. but that's a good argument to explicitly move it to the top.