How can I save a large (8MB) file using JavaScript in Safari?-Collection of common programming errors

I’m looking for a way to save large files (exactly 8 megabytes) in Safari. I have tried using both the URI scheme along with the eligreyFileSaver and the flash plugin Downloadify. All of these cause Safari to allocate memory until the web worker process reaches about 2 gigabytes and then Safari crashes.

I realize there are questions like this one before, but I have tried everything those questions have resulted in. Links:

This code works on Firefox & Google Chrome (uses the eligreyFileSaver library for saveAs):

function io_saveData (){
    var bb;
    var buffer;
    var data;

    alert ("The file will now be saved.");

        bb = new BlobBuilder();
        for (var i = 0;i