simplify package.json
refactor tests to use mocha
use scmp lib for constant time compare
refactor into constructor/prototype