HTML DOM as a flat array