Try setting pinMode(D14, 'output'); prior to calling digitalPulse(...); currently this is a requirement on ESP8266.
pinMode(D14, 'output');
digitalPulse(...);
@Ollie 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.
Try setting
pinMode(D14, 'output');
prior to callingdigitalPulse(...);
currently this is a requirement on ESP8266.