update LZW and gift.js