"use strict"; const getElement = selector => document.querySelector(selector); document.addEventListener("DOMContentLoaded", () => { // get elements for the image and caption const mainImage = getElement("#main_image"); // the img element for the show const caption = getElement("#caption"); // the h2 element for the caption // get all the elements in the