Javascript multiple image loader