I bought these on ebay to replace the old oned i had. There is another light inside of these though and I dont know how to wire it up. there is a relay (circled in blue) and a plug with 3 wires (circled in green) the bottom left is where it hooks up to each light. I am guessing i Just hook up the red wires to the battery and the black ones to ground? but i dont know were that plug goes and i would like to use the original switch if possible.

That plug is close to the camera lense so it looks bigger than it really is.