Regarding swapping with a 4.0L performance chip: You absolutely cannot directly swap a 4.0L performance chip into a 2.5L ECM. These are completely different engines with different sensors, fuel systems, and operating parameters. The 4.0L chip's programming is incompatible with the 2.5L's hardware and software. Attempting this will result in the engine not running correctly, at best, and potentially causing significant damage to the engine.
To improve performance on your 2.5L, you'll need to find a performance chip or tuning solution *specifically designed for the 2.5L engine*. Even then, gains might be modest compared to what a dedicated 4.0L chip can offer for a 4.0L engine. Keep in mind that increasing performance often requires addressing other components as well, like the exhaust system, intake, and possibly even internal engine upgrades.