Update private-properties-and-methods.html

fixed:
- public method marked as priviledged and vice versa

refactoring:
- returns public interface from IIFE instead of working with global var