add DOM.clone method, minor tweaks to helper APIs