Add script directly to page via web-resource

Background
I dont have direct access to be able to add files to our Jira instance, so I have wanted a way to be able to resource content via scriptrunner raw xml module. Its not ideal but its what I have access to…

In web-panel documentation I noticed this bit of code.

<resource name="view" type="static"><![CDATA[<b>Hello World!</b>]]></resource>

I tried taking this concept and applying it to web-resource. It doesnt appear to work.

<web-resource key='test123' name='a test resource'>
	<resource name="view" type='static'><![CDATA[<script>console.log('test123')</script>]]></resource>
	<context>atl.general</context>
</web-resource>

Request
If this is possible, can someone explain how I need to modify this snippet to inject script into page?