Added basic DOM parser - limited to HTML for modern browsers for now