рони,
Спасибо. могли-бы также подсказать по этому же примеру. Если я хочу записать в переменную объекта, результат 
xhr.responseText после вызова 
dt.sendRequest(). Я делал так:
var Valute = function () {
this.response = null;
var that = this.response;
 this.sendRequest = function () {
            var xhr = this.createRequest();
                xhr.open('GET', this.url, true);
                xhr.onreadystatechange = function () {
                if(xhr.readyState == 4 && xhr.status == 200) {
                   that = xhr.responseText;
                }
            };
            xhr.send(null);
        };
}
Но данная конструкция не работает.