updated _document to extend _obj instead of stdObject