function ChatError(message) {
this.name = "ChatError";
this.message = message || "";
}
ChatError.prototype = Error.prototype;
function init() {
if (typeof jQuery === 'undefined') {
var script = document.createElement("script");
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js";
document.head.appendChild(script);
}
return {
messageHandlers: [],
messageContentBox: null,
reload: function () {
this.messageContentBox = $('div.input');