testing JavaScript with Mocha