fixed js for pictures