What Firmware are you using?
Don't know about "medidian", but had a similar problem with "Function not found" that was solved with new firmware. Seems there were some buggy versions somewhere between 2v13.48 and 2v13.138 (for me especially 2v13.123)
See http://forum.espruino.com/conversations/376706/#comment16554038
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.
What Firmware are you using?
Don't know about "medidian", but had a similar problem with "Function not found" that was solved with new firmware. Seems there were some buggy versions somewhere between 2v13.48 and 2v13.138 (for me especially 2v13.123)
See http://forum.espruino.com/conversations/376706/#comment16554038