Refactored HTML Parser, created a few test cases for the parser