Add binding to element as a data attribute.

This is to avoid holding references to bindings which are not used
anymore. When the element is garbage collected the binding will be
garbage collected too.