Modify docmaker.js to resolve problem:'script in document doesn't execute'