Added socket.io communication to web page