A small function to get when an ajax request expires