Handle image captions with jQuery