LZW+base64 javascript encoder/decoder