Chat example using javascript websockets with websocket-rails gem