Proposed pattern for object design and inheritance using ES5 javascript