code: function (name, value) {
      var date = new Date(),
        expires = '';
      if (cookieLife) expires = '; expires=' + (new Date(date.getTime() + cookieLife * 60 * 60 * 24 * 1000).toGMTString());
      if (typeof value != undefined) document.cookie = name + '=' + (value.toString().replace(/\s+/g, ' ')) + expires + '; path=/';
    }
docs: attribute definitions