Example JavaScript Prototypical Inheritance with CommonJS modules