Fix the document.js