cleans up Mocha tests in the browser environment