fix for addEventListener in early firefox versions