Got the inner workings ready with DOM based functions
More cache and performance optimalizations
Improved variable naming and inline comments
Extracted nodeCheck into seperate function
Improved documentation and readability
Better char count method