On my TJ, I pulled the connector off the back of the headlight, pushed the bare (white)wire in the connector slot (for highbeam) and pushed the connector back on.
The connector needed a real good push to go back on so it's not going to fall off in a hurry.