It's the S132 softdevice you need: http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.softdevices52/dita/softdevices/s130/s130.html?cp=2_3_0
(and the S130 for nRF51 - they're pretty much identical API-wise)
@Gordon started
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.
It's the S132 softdevice you need: http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.softdevices52/dita/softdevices/s130/s130.html?cp=2_3_0
(and the S130 for nRF51 - they're pretty much identical API-wise)