Fix classes on SVG doughnuts

Use `attr` when adding classes, as x-browser safe

![screen shot 2014-08-21 at 17 32 45](https://cloud.githubusercontent.com/assets/74132/3999507/e6a1b616-2950-11e4-88a8-497bd7e475ea.png)

cc: @phamann