document.registerElement option argument should be optional

Fixes #406
Merge pull request #407 from arv/register-element-optional

document.registerElement option argument should be optional