Sensible DOM manipulation