The yellow wire goes to the battery, or back to the charge terminal on the alternator, the white wire gets removed and not used. As said the green goes to the RJM harness with a weather pack connector.
I had a fluke charging issue last week at the Stampede where the plug shorted out internally and the alternator would not charge. A wheeling buddy just happened to have another plug zip tied to his wiring harness in his engine compartment.... Moral of the story is carry a spare plug, they are cheap.