Reimplementing the DOM API, for fun