convention for private methods in javascript because of absence of native encapsulation