Bind JS functions to DOM elements in the declarative style of CSS