 <p>Events and listeners passing and receiving data.</p> <p>I don't use globals.</p> <p>However I don't know how to use events in raw javascript or if data passing can be done. I use jquery/node which allow for passing data and just works beautifully.</p>