ERROR: This process has timed out because the file size is too large. // append the second row to the caption caption.appendChild(second_row); // return the generated caption return caption; }// end function to create the caption }); }// end function pe2_setup_photoswipe(..) function pe2_in_array(array, value){ for(var i = 0; i < array.length; i++){ if(array[i] === value){ return true; } } return false; }