Make the html tag structure visible to js files.

We will soon have functions that compare js objects and html tags,
and even create tags from js objects.
We all agree we want to keep js in its box.
It changes often and drastically, and we may move away from mozilla someday.
So instead of putting more js functionality in html.cpp,
I think it better to make the html tags visible to the js files.