Asynchronous context for JavaScript