Topology implementation in CoffeScript