in reply to Removing Javascript

You should not try to do more than a browser would. No browser will parse
<script language="Javascript"> echo "Always use </script>!"; </script>
correctly. This is how this is usually written:
<script language="Javascript"> echo "Always use <\/script>!"; </script>