A simple Javascript program to compress and decompress a string of letters