Automatically send ajax request every 0.5s to update stats