changed to get socket.io running on client side