Examples of Concurrency in JavaScript