chore(tokenizer) move the tokenizer api into the dom-tree.js

update the test to use the dom-tree version
chore(test) update the test to use the dom-tree tokenizer api

move the tokenizer api into the dom-tree.js so the tests need to be
updated.