Convert javascript to coffeescript!