Cleanups for HTMLTokenizer

* Add JSDoc comments.
* Fix content of comments/CDATA to omit garbage at end.
* Some naming improvements.
* Add reference to license for original tokenizer to NOTICE.

@dangoor