JavaScript Script Node - II
The javascript: protocol allows the script to be placed inline as follows:
Script { url "javascript: function foo( ) { ... }" }
The url field may contain multiple URL's and thus reference a remote file or in-line code:
url [ "http://foo.com/myScript.js",
"javascript: function foo( ) { ... }" ] }
The file extension and MIME type for JavaScript source code is .js and application/x-javascript.