code: function(dataUri, fileName) {
  
              var blob = joint.util.dataUriToBlob(dataUri);
              joint.util.downloadBlob(blob, fileName);
          }
docs: Download `dataUri` as file with `fileName`. Does not work in IE9.