Worked on variable scope

Didn't know not putting 'var' before a variable defaulted it to the
Global scope? Took me by surprise.