 request.onload = function() {
        data = JSON.parse(request.responseText);

        data.map(function(data) {
            if (data.title.includes(threatID+" ") || data.body.includes(threatID+" ")) {
                div.innerHTML = "<strong>This entry was flagged for review in the following issues:</strong>";
                ul.innerHTML += " <p><a href=\"" + data.html_url + "\">Issue #" + data.number + ": " + data.title + "</a></p>";
            }
        });
    };

    request.send();
</script>
