tose.js: add ownerdocument.