remove extraneous 'R' after </script>