t:
                type = "UNKNOWN";
        }
        document.getElementById("result-meta").innerHTML += type + "<br>";
    }
    function refreshAps() {
        document.getElementById("ap-list").innerHTML = "Loading (this may take a while)...";
        var oReq = new XMLHttpRequest();
        oReq.onload = function() {
            document.getElementById("ap-list").innerHTML = "<th>SSID</th><th>RSSI</th>";
            var arrayBuffer = oReq.response;
            if(arrayBuffer) {
                var byt