urlencode & (amp) and add newline after <script>