replacing socket.io with socket.js