Actor framework for JavaScript