add mocha as a general npm dependency