 var xhr = new XMLHttpRequest();
            xhr.open('POST', uri, true);
            xhr.send(formData);
            xhr.onreadystatechange = function() {
                if (xhr.readyState === 4) {
                    cb(xhr.status);
                }
            }
        }
    document
        .getElementById('search-location')
        .addEventListener('keyup', function(event) {
            event.preventDefault();
            if (event.keyCode !== 13) {
                return;
            }
           