Ajax destroy for tasks. Fixes #1