You reference the Zlib context twice. Consider adding a static field to the class, something like:

    static JsObject _zlib = js.context['Zlib'];