Do you have a decoupling cap on the PIC? This may well not be the problem either, but I've seen chips w/out decoupling cap do all kinds of crazy things.
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.
Do you have a decoupling cap on the PIC? This may well not be the problem either, but I've seen chips w/out decoupling cap do all kinds of crazy things.