A simple way to initialize and bind logic to DOM elements