added arguments to initEvent for IE compatibility