basic dom cleanup