incorporating socket.io

Adding javascript for node socket.io