Update nextAndPrevImgs.js