Use data attribute to bind clear event handler to element.

This resolves #16.