Fixing coffeescript syntax error.

Not sure when this was introduced, but this is a syntax error in at least the latest version of coffeescript. The result is:

```
$buttons.append($("<input type=\"" + button.type + "\" />"))
    .val(button.text);
```

when the desired result is:

```
$buttons.append($("<input type=\"" + button.type + "\" />")
    .val(button.text)
);
```