DOM manipulation revised