1) Check/clean throttle body. The IAC and/or butterfly valve can get crapped up and cause weird idle - see my recent posts in another thread (I think Cottontail started that one.) I don't see any need to repeat myself - I gave the highlights of doing the job, since I did two last week-end.
2) Get a can of carburettor cleaner, and have your engine idling. Fog the carburettor cleaner around anything that's a vacuum seal (including manifold sealing surfaces and ANY vacuum lines!) and see if the cloud gets drawn in and the idle jumps up. DO NOT use the little red straw.
3) It's probably worth retorquing the manifold bolts out of hand - I check mine once a year, and I usually catch one that's just a little loose.
If you need vacuum lines, I updated the prices on the sets at NAPA - they should be the same between XJ/MJ.
5-90