For some reason, the event listener is firing twice for each element when passing arguments into an anonymous function. I.e., the click event on element el will
addEventListener registers as many listeners as it is used.
According to the documentation it takes 3 arguments, the third is useCapture which has nothing to do with registering listener twice or not. It is by default set to false, so adding false as a third parameter doesn't change much.