fixing the coffeescript errors