Make changes for coffee

really use coffee script
these are equal
```coffee-script
-  done() if typeof done is 'function'
+  done?()
```