You should prefix these with `var`, so that they are local to the function scope.