Exploring Race Conditions In Javascript With SetInterval(), SetTimeout(), And AJAX