Javascript Private Members
Full example