I'd much rather have something that behaves like:
<if js is available>
...
<else>
...
<the closing tag i guess/> <if js is available>
...
<else>
...
<the closing tag i guess/> <script>
...
</script>
<noscript>
...
</noscript> <script src="..." id="bla></script>
<noscript for="bla">Script not loaded</noscript>
Would be more flexible, and would be consistent with how labels, datalists, etc. are linked to their element.