Prevent global leak of `channels`

Without the `var` keyword here, `channels` will leak into the global namespace.