Full-featured JavaScript GIF encoder