Only triggering event in firefox