Simple single inheritance pattern boiletplate for Javascript