updating correct doc.register.js file