tton id="saveModel" onclick="save()">Save</button>
    <button onclick="newDiagram()">New Diagram</button>
  </div>
  <textarea id="mySavedModel" style="width: 100%; height: 200px">
{ "class": "GraphLinksModel",
  "nodeDataArray": [
{"key":1,"text":"S","category":"Start"},
{"key":-1,"isGroup":true,"cat":"For","text":"For"},
{"key":2,"text":"For Each","category":"For","group":-1},
{"key":3,"text":"Action 1","group":-1},
{"key":-2,"isGroup":true,"cat":"If","text":"If","group":-1},
{"key":4,"text":"If","catego