Simple single inheritance pattern boilerplate for Javascript