How does Solid attach event handlers to DOM elements? - SolidJS