Confused about how to chagne prototypes, and how to create private methods in js