Rewrite on the way
Parse htmlEntities in JS and added support for document.selection model
More and more porting code