Document widget not always displayed
Sometimes the browser does not display the content of the Document widget.
This seems to be a browser bug, see https://stackoverflow.com/questions/676705/changing-data-content-on-an-object-tag-in-html
A workaround is to create a new node instead of updating the data
attribute.