Braces should be omitted in coffeeScript. But in this case, removing them leads to an error when no attributes passed.