Example 4 - Dynamic Image Captions with JavaScript