I don't think the same pins will work in the JST connector. I didn't have to worry since I bought my connector already wired.
On the Digikey part page for the connector, scroll down to see the correct pins. They have like 6 of them.
Also, the Molex connector also comes in a version with the...