changed json export to js export