Changed .on to .addEventListener.
.on
.addEventListener
Changed .is to .matches.
.is
.matches
Closes #3443943