Prevent global leak of `channels`

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

Closes #6
Merge pull request #6 from KenanY/prevent-channels-global

Prevent global leak of `channels`