remove js and css references from email on save