A simple inheritance pattern for javascript