Just to give the javascript thread an opportunity to trigger any other events that may be waiting in the queue.