I prefer moving the function definition to `addEventListener` binding place to avoid defining another variable here, because we never reuse it in this file.