First program in JS. I don't understand why I can see neither output of the conditional in the second script. Thank you, and pre-emptive apologies for not knowing what it is I'm asking for help with.

```html
    <!DOCTYPE html>
    <head>
    <script>
    function init() {
        var num = window.prompt("Enter a number");
        num_span = document.getElementById("entered_num");
        num_span.innerHTML = num;
    }
    </script>
    </head>

    <body onload="init()">

    <h1>We math!</h1>

    Your number is
    <p id ="here">MEMEME</p>
    perfect!

    <script>
    function isPerfect(n){
        var snowball = 1;
        var half_n = n >> 1;
        for (var k = 2; k <= half_n; k++){
            if (n % k == 0) {
                snowball += k;
            }
        }
        return (snowball == n);  
    }

    if (!isPerfect(num)) {
        document.getElementById("here").innerHTML = "not";
    } else {
        document.getElementById("here").innerHTML = "definitely";
    }
    </script>
    </body>
```