docs: function(name, value, expires, path, domain, httponly) {
      if (!name) {
          throw new Error("A name is required to create a cookie.");
      }
  
      // Parse date to timestamp - consider it never expiring if timestamp is not
      // passed to the function
      if (expires) {
  
          if (typeof expires !== "number") {
              expires = (new Date(expires)).getTime();
          }
  
      } else {
          expires = -1;
      }
  
      this.name = name;
      this.value = value || "";
      this.expires = expires;
      this.path = path || "/";
      this.domain = domain || "*";
      this.httponly = Boolean(httponly);
  }