arcGIS node script now can export json stored in js variable