Implementation of a classical Object Oriented design pattern in pure Javascript code.