The diagram below provides a visual reference for wiring of the components. This diagrams was created using the software package Fritzing.
Use Adafruit's Fritzing parts library to create circuit diagrams for your projects. Download the library or just grab individual parts. Get the library and parts from GitHub - Adafruit Fritzing Parts.
The battery is connected to a slide switch switch via a 2-pin JST cable. The voltage (red) wire is connected in-line with the slide switch. Use the middle pin and either the left or right pins. This allows the power to be turned on and off.