Adding support for document.lastModified