Those in the photo are aftermarket. You have to pull the back cover off and look at how the bulb is set up inside. If it's a H3 bulb, it should be screwed in with a small phillips to hold it. The black wire usually has a ground ring under that screw. The hot wire will unplug from the harness and pull through the rubber grommet and be connected to the bulb. The new bulb will have a hot wire on it and you just push it back through the grommet, put the bulb in place, put the ground ring in place and screw it in to secure the bulb, then put the unit back together with the back cover. I usually ran some RTV on the inside lip of my lights because the seal isn't always good.
It's usually simple and self explanatory once you get the cover off.
2013 JKU Sport, billet, auto, 3.73, LSD, 315/75/16 Duratracs on MB 72, 10A springs, Bushwacker flatties
Sold - 2005 TJ, red, auto, 3.73, 33" Duratracs, 4" lift
Ice storm casualty in 2007 - 2003 TJ, green, auto, 3.73, 33" Duratracs, 4" lift