From what I learnt in JS it's possible to use document.getElementById to get access to manipulate tag. 
But since I started using objects, I don't see how is it possible to connect object with for example <div>'s id.
So to be clear if I have <div id="box"></div> and then in JS document:
var x = document.getElementById("box"); I can use x to manipulate that div.
That is all clear, but when I try something like this:
var x ={}; and then put methods inside object, how to set this x to be able to manipulate <div>?
I hope I was clear. :)