JSZip is a Javascript library for creating, reading and editing .Zip files, with a lovely and simple API.
It seems that you can only save txt files. I tried to save an image but it didn't work