Converted all to coffeescript