Remove JavaScript and deprecated tags.