Help with a 2000 Dodge Durango wiring issue?

That loose connector goes into the back of the alternator,socket is flush, right above the heavy wire connector. At least thats what it looks like from here.