Use only one function call
Simplify document.registerElement aliasing, also use the same code style as in the rest of the patch