patch mocha for old firefox