You need JST PHR-2 - if you Google it you'll get a bunch of stuff. If you order from Farnell you'll need the housing and the individual contacts. They have minimum order quantities, so you'll need to order 100 contacts and 10 housings - but that'll cost you £3.40 :)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
There's more info on it here (including part numbers for Farnell): http://www.espruino.com/EspruinoBoard#connecting_batteries
You need JST PHR-2 - if you Google it you'll get a bunch of stuff. If you order from Farnell you'll need the housing and the individual contacts. They have minimum order quantities, so you'll need to order 100 contacts and 10 housings - but that'll cost you £3.40 :)
Olimex also sell batteries with the connector on: https://www.olimex.com/Products/Power/