Configure timeout in ajax request