adding utils.js
added utils.js
fixed rest
updated mocha test