Setup socket.io

communication between the client javascript and the server