in order to make this work with goals created after this script runs, you have to tweak it a little bit:

```js
$('#user_goals').on('click', 'li.goal button', function(e) {
```

The change is to put the click handler on the `ol` tag. When you click on a button like `ol#user_goals li.goal button`, the browser will run click handlers for the `button`, then the `li`, then the `ol`. The `ol` tag will always be there, even if every goal `li` changes, and if new `li` goals are added. So that makes the click work even on new goals after they are added!