First draft of HTML parser