switching to library version of DOMCursor