Fix coffee controllers

this fixes the coffee script controllers, I haven't tested extensively since I've never written coffee script myself.
Merge pull request #313 from mghayes/patch-3

Fix coffee controllers