code: function (format) {
      var json = JSON.stringify(this.toHash());
  
      if (format == 'json') return json;
  
      return LZString.compressToBase64(json);
    }
docs: Returns the cropped data as JSON or compressed http://pieroxy.net/blog/pages/lz-string/index.html