Revert "Switch to using DOM"

This reverts commit a53a5fe85c7ab655304dc92d374c315bbd208c2b.