Replace <script> elements if onbeforescriptexecute does not exist.