added the data export to js