figuring out how to do private members in javascript