Added configurable ajax timeout