I have indeed updated to the latest version. My wiring is exactly the same as yours, so I can't think of any reason why digitalWrite wouldn't work! I think it would indeed be best to first update the software and try again.
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.
I have indeed updated to the latest version. My wiring is exactly the same as yours, so I can't think of any reason why digitalWrite wouldn't work! I think it would indeed be best to first update the software and try again.