nit: let's keep the addEventListener close to the function definition