Remove "class" attribute from template files
Add script to delete "class" attribute from dependents