Add timeouts on AJAX requests