Detach code execution using JavaScript's task queue.