Added javascript preloading for GIF