AngularJS service for text compression / decompression using LZW algorithm