Use only DOM APIs in test/dom.lua