Update document-register-element.js