I have had this happen to me twice; one time it was the fuel pump acting up (it would work fine on idle, but on acceleration, it would act up). The second time is was a coil acting up. Start checking the coil. Sometimes water gets into the plug (the Jeep has the coil down low), and any rust in there will cause the engine to act up. If I were you, I would replace the coil and wires to rule it out, but that's really up to you. If it's not that, I would get a new pump.