capsule.js - object model paradigm for encapsulation