Remove unneeded tags with classes for the Modal element