A minimal DOM implementation