uploaded image files and js programming for images