I am not sure why jshint did not yell about this but char and i were being leaked to the global scope.