This introduces a memory leak -- $(module.exports) will keep references to every Document ever created.  Why not do this down in the existing notifyPathNameChanged() in the existing code that loops over _openDocuments?