var imgs = getElementsByClassName("unloaded");
for (x in imgs) { imgs[x].src = imgs[x].name; }