In the latest filesaver documentation, an example is given for how to use filesaver.js in conjunction with blobbuilder.js:
var bb = new BlobBuilder(); bb.app
https://github.com/koffsyrup/FileSaver.js#examples
Saving text(All Browsers)
saveTextAs("Hi,This,is,a,CSV,File", "test.csv"); saveTextAs("Hello, world!", "test.html");
Saving text(HTML 5)
var blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"}); saveAs(blob, "hello world.txt");