add modified attribute to ly.document.Document