If the battery is a dead and the Jeep wont keep running your possibly looking at an alternator problem, or corroded cables... but if its the alternator's voltage regulator, its inside the Jeeps computer for a 97. If you can take, the battery out, and charge it up(if you have a charger or take it to an auto parts store that will do it). If you take it to a parts store, have them load test the battery after the charge to see if its good. If bad replace it, but if its good your looking at the cables or alternator next.
Just because you cleaned the end of the cables doesn't mean that the corrosion isn't down inside the cable.