However I'm not quite sure why you can't just use the Web IDE (or command-line tools) to compile and upload code yourself? The compiled code will only work with the version of Espruino it was compiled for, so if you update you'll have to change everything.
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.
It'll look the same for a more complex function - there'll just be a bigger string of characters.
To compile it yourself you'd have to check out https://github.com/gfwilliams/EspruinoCompiler and run your own server.
However I'm not quite sure why you can't just use the Web IDE (or command-line tools) to compile and upload code yourself? The compiled code will only work with the version of Espruino it was compiled for, so if you update you'll have to change everything.