Added configurable ajax timeout take 2