replacing assert.js with chai.js