changing <r:script> into <script>