First try at parsing the DOM