Fixes a regression that will cause inline scripts to be removed when using js responseType