Updated handlers to reflect recent Custom Element specification changes.
Renamed handlers to on- style.