Stripping down and converting to coffeescript