Made some variables and methods "private"

Based on this article:
http://javascript.crockford.com/private.html