I'm not sure I see how you can connect to an irc server directly from the browser without some sort of proxy. You can't do TCP from js.
[0] http://developer.chrome.com/apps/socket.html [1] https://wiki.mozilla.org/WebAPI/Security/TCPSocket
Writing a basic server that strips the websockets part from messages and forwards them to a real TCP server isn't very hard, but it's still a server you need.
The WebSocket Protocol is an independent TCP-based protocol. Its
only relationship to HTTP is that its handshake is interpreted by
HTTP servers as an Upgrade request.
http://tools.ietf.org/html/rfc6455#section-1.7