Diagram can now be saved and loaded back exactly the same in the browser.