Better detect the SimpleModal iframe via JavaScript (see #7281)