coffe script reimplementation
Coffe script rewrite