A simple library for JavaScript Thread support