code: function(str) {
    var obj = {};
    var pairs = str.split(';');
    for (var i = 0; pairs.length > i; i++) {
      var kvs = pairs[i].trim().split('=');
      obj[kvs[0]] = kvs[1];
    }
    return obj;
  }
docs: Parse `key=value; key=value` strings (for cookies).