fixing coffeescript syntax error