Added links to thumbnails with jquery