anchor.diff:  		var/datum/mind/M = target
   		if(M.current && M.current.client)
   			return M.current.client
  -
  -/datum/log	//exists purely to capture to_chat() output
  -	var/log = ""
positive.code: 	var/loaded       = FALSE // Has the client loaded the browser output area?
  	var/list/messageQueue //If they haven't loaded chat, this is where messages will go until they do
  	var/cookieSent   = FALSE // Has the client sent a cookie for analysis
  	var/list/connectionHistory //Contains the connection history passed from chat cookie
  	var/broken       = FALSE
  
  /datum/chatOutput/New(client/C)
  	owner = C
  	messageQueue = list()
  	connectionHistory = list()
  	// log_world("chatOutput: New()")
  
  /datum/chatOutput/proc/start()
  	//Check for existing chat
  
negative.code: 	if(data)
  		ehjax_send(data = data)
  
  
  //Called on chat output done-loading by JS.
  /datum/chatOutput/proc/doneLoading()
  	if(loaded)
  		return
  
  	testing("Chat loaded for [owner.ckey]")
  	loaded = TRUE
  	winset(owner, "output", "is-disabled=true;is-visible=false")
  	winset(owner, "browseroutput", "is-disabled=false;is-visible=true")
  
  
  	for(var/message in messageQueue)
  		to_chat(owner, message)
  
  