Make sure to include `var` before `i`... otherwise you'll be stuck with a global variable!