Use Zlib.java as an EventSource to handle zlib.js callbacks