var newIm = [ {src: '111.jpg'}, {src: '112.jpg'}, {src: '113.jpg'}, {src: '114.jpg'}, {src: '115.jpg'} ]; for (var i=0; i<newIm.length; i++) { newIm[i].img = new Image(); newIm[i].img.src = newIm[i].src; };