Javascript to Coffeescript