Use event listeners.
Lint JS.