Added timeout to AJAX loader.