Update of Javascript

Default GIF generation fixed. Fixed it with an assumption the incoming
image size is a 3x2/6x4/6x9 rectangle. Incoming images of a 5x4 will
break, but that problem might be wider that just for gifs..