code: function Message(type, content) {
      if(typeof type !== 'string' && !(type instanceof String)) throw new TypeError('type attribute for Message must be a String');
      this.type = type;
      this.content = content;
  }
docs: Created by manthanhd on 17/10/2016.