trim empty <script></script>