Attempting to write out an edited JSDOM instance using document.toString however it serializes as [object Document]. What method should we call to get the document markup as a String or is there a better way to serialize it in node. Currently I'm making this call:
fs.writeFileSync(target, document.toString());