Update emblstring.js to poll the button on the page correctly.
fixed websocket send bug. We need to wait until the websocket is in the Ready state before sending data.