pure javascript inflate implemented as a through stream