delete unused HTML codes