What's the reason for 2 setTimeout's?