I have a 1991 wrangler yj 4.0 and when i first start it, it wants to rev around 1500 and then drops to around 700 and after idling for about 2 minutes it acts like its going to die and then picks back up to around 700. I replaced all of the vacuum hoses and the fuel pump and fuel filter. My next guess would be idle air control valve or throttle position sensor. Any ideas on how to fix this without spending more money?