Fix errors in coffeescript