HTML5 Code Editor / Canvas Drawing with WebSocket