Bonescript document object

If I want to display a var in a webpage, do I need a document object so I can use the getElementById method?

Do I need jsdom?

Is there another way to show the value of a variable within a webpage?