I'm running a proxy with some local data in the body tag [as shown here](https://gist.github.com/tonyhb/8495431) and using `index - 1` adds the script in an incorrect place (inside the JSON response). Changing this to just `index` works fine.