Added missing IE check before instantiating Events