Fix AJAX activity deletion.

Fixes how the 'id' variable is calculated so the correct activity ID
is passed.

See #68.