defined JS API in toolcurb-js-api.md