Fake thread pool of javascript.