cleanup html dom