updated to include socket.io and voting code