Coffeescript

Conversion to coffeescript