Simple methods for writing extensible JavaScript classes.