window.onload = function() {
    document.querySelector('input[type=radio][value=academia]').checked = true;
    document.querySelector('input[name=button]').onclick = function() {
        var industry = document.querySelector('input[name=industry]:checked').value;
        var comment = document.querySelector('input[name=comment]').value;
        var output = document.querySelector('div#output');
        output.style.color = 'red';
        output.innerHTML = industry+'<br/>'+comment;
    }
}