You're missing the `var` statement, which means that `show` is a global variable rather than being local to this function.