AJAX timeout fix