Output JS calculation to a page is suppressed

I am trying to output the result of current viewport size calculation done by a js script for responsive testing (<span id="size"></span>) - but it is suppressed.
How can I output it??
Thank you guys!

Hi there,

That is a JS question and has nothing to do with Hugo. It is outside the scope of this forum.