added support for IE when addEventListener is not supported