Same code, converted to coffeescript