                item = line[item_key];
                            }
                            if (first_key) {
                                export_data += item;
                                first_key = false;
                            } else {
                                export_data += ';' + item;
                            }
                        }
                        export_data += "\r\n";
                    });
                    link.setAttribute("href", encodeURI(export_data));
