fix mocha listener in ie