Replaced events with event bindings using addEventListener().