setTimeout not in an asynchronous callback