Make javascript unit tests work (with mocha).