tighten up echo demo

* use jquery-websocket plugin (depends on json2.js)
* simplify markup and event handling code