Take a look here:
http://forum.espruino.com/conversations/283045/#comment12837928
This stores page content in flash, and uses the .pipe to stream the content out on demand.
You can store the content on your gist, fetch into flash. Then your code above can pull the content from flash.
Edit: as gist requires https:// access you can use the wget to get this content. I have used a local node server to cache code.
@Wilberforce started
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.
Take a look here:
http://forum.espruino.com/conversations/283045/#comment12837928
This stores page content in flash, and uses the .pipe to stream the content out on demand.
You can store the content on your gist, fetch into flash. Then your code above can pull the content from flash.
Edit: as gist requires https:// access you can use the wget to get this content. I have used a local node server to cache code.