1if (jsLoaded) { 2 log("Button was clicked."); 3 // Use a big timeout value to ensure that error messages do not show up. 4 setTimeout(function() { if (runningModal) log("Error: This line should not show up!"); }, 3000); 5} 6