Prevented JS error for script-tags passed to wcfDialog()