getElementOffset added to dom utils