performance improvements for calling JSFunctions, in benchmark 18% performance increase (refs #2)
slightly streamlined TransitFunction API for async calls