wrapping is odd
try:

    document.querySelector('#spacer').style.height =
        getComputedStyle(document.querySelector('body')).height;