This writes to the global variable WebSocket. Instead, I think we should, in node, do `var WebSocket = require('ws')` in the toplevel scope.