This example utilizes setTimeout to execute following function invocations asynchronously, causing the browser to be responsive while executing the code.
Extensive synchronous work causes the browser to freeze until the work is done.