THRIFT-2350 Add async calls to normal JavaScript
Patch: Randy Abernethy