Why not just use addEventListener instead?