added logging to html page using socket.io.