add timeout for ajax query