Late-model TJs are notorious for rotting at the windshield frame. Best course of action is to replace the entire frame. Yours may not be that bad; maybe fold it down and see how much rust is there. A welder might be able to fabricate something for you since windshield frames are hard to come by at a reasonable price.