Update document-register-element.js

Glad to see something other than me using shortcuts like vhV instead of 'selfexplanatory' names like
thisIsTheVariableHoldingTheValueOfObjectsPropertyThatIDefineLater.

Without defining REGISTER_ELEMENT nothing works, but now ... superb!

Many thanks for sharing this fine piece of code.