adjusted the coffee script to fix an issue in the controllers