Add toString to core.HTMLDocument.prototype, fixes #935