Parasitic Class Definitions in Javascript