Prevent global leak of `connect`

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

Closes #5
Merge pull request #5 from KenanY/prevent-connect-global

Prevent global leak of `connect`