javascript storing global variables in DOM
<p>I have a fairly large script that contains about 60 global variables. I'm thinking about using the namespace pattern to encapsulate my script and have only one global variable that references one object.</p>

<p>Even though this pattern is considered best practice, I'm also thinking about an alternative: storing the global variables inside the DOM, in hidden divs, and accessing them with <code>$('#MyGlobalVar1').text()</code>. Is this a good idea or not?</p>

<p>Thanks for your suggestions.</p>
