Leave the wires on the JST connector long enough to allow the lid to swivel once it is all assembled. Strip the ends of all the wires. Solder one lead of the JST to the negative post of the battery holder. Attatch the other to the negative post of the switch. The small piece of wire gets soldered to the positive posts of the battery holder and the switch. Insert battery and test the circuit.