Update SaveDocument.js

Customize to call own method in html