add timeout to ajax calls