Remove unneccessary code from template (IE)