There's actually a tool online at http://espruino.com/File+Converter that might help you - just upload a file and it'll convert it to a form that is pre-escaped and ready for use.
There was a plan to add a filesystem organiser to the Web IDE which might help with this sort of thing in future.
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.
Glad it's sorted!
There's actually a tool online at http://espruino.com/File+Converter that might help you - just upload a file and it'll convert it to a form that is pre-escaped and ready for use.
There was a plan to add a filesystem organiser to the Web IDE which might help with this sort of thing in future.