The program below provides an interface that can be used to compress and decfoompress text using the LZW algorithm. To see the source code, visit http://thiscouldbebetter.wordpress.com/2014/04/08/compressing-data-with-the-lzw-algorithm-in-javascript/.