other calls to postError are asynchronous (because they are in an XHR event handler) therefore you need to make it asynchronous here too, by using `setTimeout`.

also this is probably necessary because otherwise, in your `online` function, you would modify the object you're iterating with, and this can do strange things. With an asynchronous call, you won't modify the object while you're iterating :)