ewdGlobals update: NodeM bug workaround; getDocument() performance improvement