GIF Encoder JS fix

HK