Javascript class Factory generator implemented in Coffeescript.