added support for IE style event attaching