set timeout for ajax call