WebSocket Wrapper for JavaScript