first commit of document.register polyfill script