Enable loading as an AMD module

Allow jschannel to be loaded via an AMD loader like require.js without
having to use a shim.