Adds JS to handle thumbnail images (possibly).