Updated script to mirror changes in index.html.
Added GIF support.