edited the js for the images