var a = document.getElementById('downloader');

    var csv_base = "test";

    // BOM(文字化け対策)
    var bom = new Uint8Array([0xEF, 0xBB, 0xBF]);

    var blob = new Blob([bom, csv_base], {
        type: 'text/csv'
    });

    // ie浏览器
    if (window.ActiveXObject || "ActiveXObject" in window) {

        window.navigator.msSaveOrOpenBlob(blob, "file_name");
    } else {

        var url = (window.URL || window.webkitURL).createObjectURL(blob);
        a.download = "file_name";
        a.href = url;
    }