There are a whole lot of threads on this kind of thing already. Either:
Set Puck.js up to advertise the state of the button - subscribe to BLE advertising events with nativescript and then call the number then.
Set Puck.js up as a BLE HID device - you can then just set a listener up for a specific keypress
Keep a connection to Puck.js open and set yourself up to be notified if a characteristic changes - that's the way you'd do it with normal BLE devices, but it's a bit more trouble
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 are a whole lot of threads on this kind of thing already. Either: