You're missing a `var` statement here, so the `path` variable ends up being a leaked global variable :(

It's cool, I can fix it.