code: function (name, value) {
        var date = new Date();
        date.setTime(date.getTime() + this.cookieTimeout);
  
        document.cookie = name + '=' + value + ';expires=' + date.toGMTString() + ';path=/';
      }
docs: /*
  Create/update cookie