Set timeout for ajax requests.