Cleaning up DOM