A small JavaScript script for preloading images