zopfli mirror (and fixed codes for emscripten) for zopfli.js