Fix self-closing <script> tag not being supported for HTML5