Is jQuery needed for this? You seem to be creating a new jQuery object just to remove a DOM node. What about something like the following?
```js
script = features[len].getElementsByTagName('script')[0];
script.parentNode.removeChild(script);
```
Even better, if the script element is the immediate child of features[len] then you could do:
```js
feature = features[len];
feature.removeChild(feature.getElementsByTagName('script')[0]);
```