Fixed calls to addEventListener which requires 3 parameters in old browsers