set ajax timeout for request API