Added a timeout to the ajax requests