api compatible with node.js for Adobe Extended Script