fix <script> tag generation on server side