Javascript bgzf inflation and deflation