Implementation of javascript / coffeescript Object Oriented Programming: class, private, public, static