Detect animated GIF from JavaScript buffers.