Update NewDocument.js

Customize to call own method