added js for images