Fix note deletion

The DOM API is cool.