update the mocha adapter to customize version to support AMD