How are you connecting the battery? Are you connecting it to BAT_IN, or are you connecting it straight to Vcc (which will result in the board getting twice it's rated voltage, and would explain any weird behavior)
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.
How are you connecting the battery? Are you connecting it to BAT_IN, or are you connecting it straight to Vcc (which will result in the board getting twice it's rated voltage, and would explain any weird behavior)