bug fix on global leak mocha error on opera 21