Add minified build
Fix mocha tests