create npm package and use mocha, chai for testing