switch out jasmine for the more modern, more useful mocha/chai combination; update tests and documentation