cleanup html and js