Improve mocha adapter, the function passed into mocha.reporter() is a constructor