opening a socket with javascript
socket opened and sending data