Moved refresh into onreadystate-handler.