Enables loading as an AMD module without a shim

When loaded as an AMD module, code doesn't mess with window.Channel (so
that it doesn't break pages that use jschannel via global object along
with an AMD loader for other things)