If you do not fully understand scope, then you will find that all sorts of weird and unexpected things will happen in your code.
Javascript is not a classical object orientated language like Java or C++ so don't expect it to behave in the same way.
Take the time to read the following article and you will save your self alot of time and head aches!