ajax file exporter