Cross platform concurrency for JavaScript