A DOM API shim using LTX