updated js for resp images