Just to add that if you write Icons.js and to require("Icons.js") that should work, but the Web IDE will still complain with a warning on upload even though it will work (because the IDE can't find the file before upload, but the Bangle will find it fine).
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.
Just to add that if you write
Icons.js
and torequire("Icons.js")
that should work, but the Web IDE will still complain with a warning on upload even though it will work (because the IDE can't find the file before upload, but the Bangle will find it fine).