mocha script