change toElement to target
Normalize events so FF also can work