title: What is the best way to store a value for use in a later function? I'm hearing global variables are evil
body: <p>So the code I'm using is at <a href="http://jsfiddle.net/8j947/10/" rel="nofollow noreferrer">http://jsfiddle.net/8j947/10/</a> and it returns a value of true or false for the variable isLive.  How can I use the variable onLive in a later function?  I read the answers at <a href="https://stackoverflow.com/questions/407048/accessing-variables-from-other-functions-without-using-global-variables">Accessing variables from other functions without using global variables</a>, but I'm having a lot of trouble getting it to work.  All I want is to store the value, true or false, so I can call it into an if statement in a later function.  Can anyone give me the simplest way to do this?  Is there a way to store the data as an object?</p>