QuickLZ port to Javascript