made ws.js connection