I built this but I see that the speaker is still active with the headphones attached. I found by adding a 1kOhm resistor from pin 7 to pin 5 tells the detector a wired headset is attached and mutes the internal speaker.
Here is a photo showing the solder side of the connector with the headphone and USB connections shown (sorry about my drawing of the headphone jack).